#ifndef CGAMING_H
#define CGAMING_H

#include "CScene.h"
#include "Typedef.h"
#include "Struct.h"
#include "Enum.h"

class CUnit;
class CBuilding;

class CGaming : public CScene
{
public :
						//CGaming(void);
						CGaming(int const _nStageNumber);
						~CGaming(void);
			void		put(void);
			int			run(void);

private :
	ls_Unit*	m_plsUnits;
	ls_Unit*	m_plsEnumys;

	SUnitAbility	m_SAbility[12];

	SBuildingAbility m_SBuilding[2];

	CBuilding* m_pBuildings[2];

	int		m_nUnitNumber;
	int		m_nMouseMode;
	int		m_nMoney;
	int		m_nState;
	int		m_nNowTime;
	int		m_nAddCameraPosition_X;
	int		m_nGoldIncreaseDelay;
	int		m_nGoldIncreaseFinalTime;
	int		m_nUnitCreateDelay[12];
	int		m_nUnitCreateFinalTime[12];

			CUnit*		CreateUnit(int _nType,int _nLine);

			void		EnumyPut(void);
			void		EnumyAct(void);
			void		UnitDestroy(ls_Unit::iterator& _refitr, EPlayerType _EPlayerType);
			void		CheckMouse(void);
			void		checkKeyBoard(void);
			void		checkKey(void);
			void		mouseCreatingCheck(void);
			void		CameraMovingCheck(void);
			void		CameraMoving(int const _MovingValue);
			void		ButtonHitTest(void);
			void		KeyDown(void);
};

#endif